<template>
    <div>
        主页
        <input v-model="w">
        <span>{{w}}</span>
        <button @click="aa">点我</button>
    </div>
</template>

<script setup lang="ts">
const w = ref("")

const aa = () => {
    w.value+=1
}
</script>

<style lang="scss" scoped>

</style>